/**
 *
 */
/**
 *
 */
import core.designpattern.mvc.*; 
 
import rocknrollracing.gameelement.*;

import util.*; 
 
class rocknrollracing.gameelement.WorldTopDownGameElementView extends GameElementView
{
	private var worldCanvas:MovieClip;
	
	public function WorldTopDownGameElementView(canvas:MovieClip, model:Model)
	{
		super(canvas, model);
		worldCanvas = canvas.createEmptyMovieClip("worldtopdowncanvasgameelement",2);	
	}
	
	public function createMovieClip(canvas:MovieClip):Void
	{
		canvas.attachMovie(model.getId(), model.getId(),1);
	}
	
	public function getWorldTopDownCanvasGameElement():MovieClip
	{
		return worldCanvas;
	}
	
	public function destroy():Void
	{
		worldCanvas = null;
		//super.destroy();
	}
}